package org.jeecg.modules.demo.weixin.smtdev.service.impl;


import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.conditions.query.LambdaQueryChainWrapper;
import org.jeecg.modules.demo.weixin.entity.SmtDev;
import org.jeecg.modules.demo.weixin.smtdev.mapper.SmtDevMapper;
import org.jeecg.modules.demo.weixin.smtdev.service.ISmtDevService;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

/**
 * @Description: smt_dev
 * @Author: jeecg-boot
 * @Date:   2023-12-21
 * @Version: V1.0
 */
@Service
public class SmtDevServiceImpl extends ServiceImpl<SmtDevMapper, SmtDev> implements ISmtDevService {

    @Override
    public SmtDev queryDevCode(String devCode) {
        LambdaQueryWrapper<SmtDev> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.eq(SmtDev::getDevCode,devCode);
        SmtDev smtDev = this.getOne(queryWrapper);
        return smtDev;
    }
}
